

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<script type="text/javascript" src="helpman_topicinit.js"></script>

<title>Import from XMI [Enterprise Architect User Guide]</title>

<meta name="keywords" content="Enterprise Architect, Sparx Systems, UML, XMI,XMI Import,Import,Import From XMI,RSA,RSA XMI,.UML2,.UML2 Import,.EMX,.EMX Import,UML_EA.DTD,UML_EA.DTD File,UML,UML 1.3,UML 1.4,UML 2.0,Rational Software Modeler,Rational Software Modeler Import *.emx Files,Rational Software Modeler Import *.uml2 Files,RSM,RSM Import *.emx Files,RSM Import *.uml2 Files">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />

<link type="text/css" href="default.css" rel="stylesheet" />
<style type="text/css">
  A, A:Visited
  {
    color: #00F;
  }

  A:Active, A:Hover
  {
    color: #F00;
  }

  OL
  {
    margin: 5px 0 5px 48px;
  }

  UL
  {
    margin-bottom: 3px;
    margin-top: 0;
  }

  #nsr
  {
    background-color: #D4DFFF;
  }

  #nsr A
  {
    text-decoration: none;
  }

  #mainbody
  {
    padding: 8px;
  }

  .p_BodyText
  {
    padding: 5px 0;
  }
</style>



<style type="text/css" media="screen">
  BODY
  {
    background-color: #FFFFFF;
  }

  #nsr
  {
    padding: 6px 6px 0 6px;
    border-bottom: none;
    vertical-align: top;
    z-index: 2;
    visibility: visible;
    left: 0;
    top: 0;
    position: absolute;
  }

  #mainbody
  {
    left: 0;
    top: 0;
    margin: 0;
    position: absolute;
    padding: 10px;
    overflow: auto;
    height: 100%;
    z-index: 1;
    background-repeat: no-repeat;
    background-position: bottom right;
    background-attachment: fixed;
  }
</style>

<style type="text/css" media="print">
  #nsr
  {
    visibility: none;
  }

  #mainbody
  {
    overflow: visible;
  }
</style>
<script type="text/javascript" language="JavaScript" src="nonscroll.js"></script>

</head>
<body scroll="no">

<div id="page">



        <div id="content">
          <div id="content-inner">
          



  
          <div id="nsr">
            <table border="0" cellspacing="0" cellpadding="4" width="100%">
              <tr valign="top">
                <td align="left">
  


                  <p class="p_Heading1"><span class="f_Heading1">Import from XMI</span></p>



  
                </td>
                <td align="right">
                  <a href="introduction.htm" onmouseover="document.images.main.src='button_main_h.gif'" onmouseout="document.images.main.src='button_main.gif'">
                    <img name="main" src="button_main.gif" border=0 alt="Return to Introduction">
                  </a>&nbsp;
    
                  <a href="exporttoxmi.htm" onmouseover="document.images.prev.src='button_prev_h.gif'" onmouseout="document.images.prev.src='button_prev.gif'">
                    <img name=prev src="button_prev.gif" border=0 alt="Previous page" />
                  </a>&nbsp;
    
    
    
                  <a href="import_emxuml2_files.htm" onmouseover="document.images.next.src='button_next_h.gif'" onmouseout="document.images.next.src='button_next.gif'">
                    <img name=next src="button_next.gif" border=0 alt="Next page" />
                  </a>
    
    
                </td>
              </tr>
            </table>
          </div>
          <div id="mainbody">
  


                <p class="p_BodyText"><span class="f_BodyText">You can import a package from an XMI (XML based) file. This enables you to move Enterprise Architect Model elements between models, for distributed development, <a href="o1133.htm">manual version control</a> and other benefits.</span></p>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 5px 0px 5px 13px;"><table cellspacing="0" cellpadding="2" border="0" style="border: none; border-spacing:0px;">
<tr style="text-align:left;vertical-align:bottom;">
<td valign="bottom" width="955" bgcolor="#efeff7" style="width:955px; background-color:#efeff7;"><p class="p_TiporNote" style="border-top: none; border-right: none; border-left: none;"><span class="f_TiporNote" style="color: #ff0000;">Important:</span></p>
</td>
</tr>
<tr style="text-align:left;">
<td width="955" bgcolor="#f7f7ff" style="width:955px; background-color:#f7f7ff;"><ul style="text-indent: 0px; margin-left: 14px; list-style-position: outside;">
<li><span class="f_TiporNoteText">When you import an XML file over an existing package, ALL information in the current package is deleted first. Before you import the XML file, please make sure you do not have important changes that you do not want to lose.</span></li>
<li><span class="f_TiporNoteText">If you are </span><span class="f_TiporNoteText" style="font-style: italic;">importing</span><span class="f_TiporNoteText"> an XMI 1.1 file that was previously </span><span class="f_TiporNoteText" style="font-style: italic;">exported</span><span class="f_TiporNoteText"> with a UML_EA.DTD file, the UML_EA.DTD file must be present in the directory into which the XMI file is being written. An error occurs if the UML_EA.DTD file is absent.</span></li>
</ul>
</td>
</tr>
</table>
</div>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 5px 0px 5px 13px;"><table cellspacing="0" cellpadding="2" border="0" style="border: none; border-spacing:0px;">
<tr style="text-align:left;vertical-align:bottom;">
<td valign="bottom" width="955" bgcolor="#efeff7" style="width:955px; background-color:#efeff7;"><p class="p_TiporNote" style="border-top: none; border-right: none; border-left: none;"><span class="f_TiporNote">Note:</span></p>
</td>
</tr>
<tr style="text-align:left;">
<td width="955" bgcolor="#f7f7ff" style="width:955px; background-color:#f7f7ff;"><p class="p_TiporNoteText"><span class="f_TiporNoteText">In the </span><span class="f_TiporNoteText">Corporate, Business and Software Engineering, System Engineering and Ultimate editions</span><span class="f_TiporNoteText"> of Enterprise Architect, if security is enabled you must have </span><span class="f_TiporNoteText" style="font-weight: bold;"><a href="permissionlist.htm">Import XMI</a></span><span class="f_TiporNoteText"> permission to import packages from XMI.</span></p>
</td>
</tr>
</table>
</div>
<p class="p_BodyText"><span class="f_BodyText">You can import the following formats:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">UML 1.3 (XMI 1.0)</span></li>
<li><span class="f_Bulletlist1">UML 1.3 (XMI 1.1)</span></li>
<li><span class="f_Bulletlist1">UML 1.4 (XMI 1.2)</span></li>
<li><span class="f_Bulletlist1">UML 2.0 (XMI 2.1)</span></li>
<li><span class="f_Bulletlist1">UML 2.1 (XMI 2.1)</span></li>
<li><span class="f_Bulletlist1">MOF 1.3 (XMI 1.1)</span></li>
<li><span class="f_Bulletlist1">MOF 1.4 (XMI 1.2)</span></li>
</ul>
<p class="p_BodyText"><span class="f_BodyText">Enterprise Architect can also <a href="import_emxuml2_files.htm">import the *.emx and *.uml2 files</a> generated by tools such as Rational Software Architect (RSA) and Rational Software Modeler (RSM).</span></p>
<p class="p_SubHeadingL1"><span class="f_SubHeadingL1">Import From XMI</span></p>
<p class="p_BodyText"><span class="f_BodyText">To import a package from XMI, follow the steps below:</span></p>
<ol style="text-indent: 0px; margin-left: 48px; list-style-position: outside;">
<li value=1><span class="f_NumberedList">In the </span><span class="f_UIControl">Project Browser </span>window<span class="f_NumberedList">, select the package into which to import the file.</span></li>
<li value=2><span class="f_NumberedList">Either: </span></li>
</ol>
<ul style="text-indent: 0px; margin-left: 65px; list-style-position: outside;">
<li><span class="f_Bulletlist3">Right-click and select the </span><span class="f_MenuKeyField">Import/Export | Import Package from XMI</span><span class="f_Bulletlist3"> menu option, or</span></li>
<li><span class="f_Bulletlist3">Select the </span><span class="f_MenuKeyField">Project | Import/Export | Import Package from XMI</span><span class="f_Bulletlist3"> menu option.</span></li>
</ul>
<p class="p_Bulletlist3"><span class="f_Bulletlist3">The </span><span class="f_UIControl">Import Package from XMI</span><span class="f_Bulletlist3"> dialog displays.</span><br>
<span class="f_Bulletlist3">&nbsp;</span><br>
<img src="importxml.png" width="459" height="298" border="0" alt="ImportXML"></p>
<p class="p_Bulletlist3"><span class="f_Bulletlist3">&nbsp;</span></p>
<div style="text-align: left; text-indent: -21px; padding: 0px 0px 0px 0px; margin: 5px 0px 0px 48px;"><table cellspacing="0" cellpadding="2" border="0" style="border: none; border-spacing:0px;">
<tr style="text-align:left;vertical-align:bottom;">
<td valign="bottom" width="955" bgcolor="#efeff7" style="width:955px; background-color:#efeff7;"><p class="p_TiporNote" style="border-top: none; border-right: none; border-left: none;"><span class="f_TiporNote">Note:</span></p>
</td>
</tr>
<tr style="text-align:left;">
<td width="955" bgcolor="#f7f7ff" style="width:955px; background-color:#f7f7ff;"><p class="p_TiporNoteText"><span class="f_TiporNoteText">To import .emx or .uml2 files, click on the </span><span class="f_MenuKeyField">Import EMX / UML2 Files</span><span class="f_TiporNoteText"> button. Go to <a href="import_emxuml2_files.htm">Import EMX/UML2 Files</a>.</span></p>
</td>
</tr>
</table>
</div>
<ol style="text-indent: 0px; margin-left: 48px; list-style-position: outside;">
<li value=3><span class="f_NumberedList">In the </span><span class="f_MenuKeyField">Filename</span><span class="f_NumberedList"> field, type the directory path and filename from which to import the XMI file.</span></li>
<li value=4><span class="f_NumberedList">Select the </span><span class="f_MenuKeyField">Import diagrams</span><span class="f_NumberedList"> checkbox to import diagrams.</span></li>
<li value=5><span class="f_NumberedList">Select the </span><span class="f_MenuKeyField">Strip GUIDs</span><span class="f_NumberedList"> checkbox to remove Universal Identifier information from the file on import. This enables the import of a package twice into the same model; the second import requires new GUIDs to avoid element collisions.</span></li>
<li value=6><span class="f_NumberedList">Select the </span><span class="f_MenuKeyField">Write log file</span><span class="f_NumberedList"> checkbox to write a log of import activity (recommended); the log file is saved in the directory from which the file is being imported.</span></li>
<li value=7><span class="f_NumberedList">Click on the </span><span class="f_MenuKeyField">Import</span><span class="f_NumberedList"> button.</span></li>
</ol>




            </div>
          </div>
        </div>



</div>


</body>
</html>
